package com.gzz.orchid.common.boot.mybatis.conditices.rule;


/**
 * @author higmd
 */
public class NormRegular extends AbstractRegular {
    private final Object value;
    public NormRegular(String fieldName, SqlSymbol symbol, SqlSymbol previous, Object value) {
        super(fieldName, symbol, previous);
        this.value = value;
    }

    @Override
    public String resolveExpression() {
        return String.format("%s %s %s", fieldName, symbol.getNotation() , formatterValue(this.value));
    }
}
